<?php
/**
 * Index
 * 
 * @copyright inovia 
 */
function getMicroTime(){
    $microsecondes=microtime();
    list($micro,$time)=explode(' ',$microsecondes);
    return($micro+$time);
}
$mt_start=getMicroTime();
$configRootDir  = "";     //the rootDir
$database       = "";   //database instance
$request        = null;   //request instance
$response       = null;   //response instance
$logs           = null;   //log instance
$user           = null;   //classic User instance
$usergroup      = null;   //group User instance

//for($i=0;$i<1000;$i++){
include_once($configRootDir."config.php");
include_once($configRootDir."actions.php");
include_once($configRootDir."core/dispatcher.php");
$ed = new Dispatcher();
$ed = null;
//}

/**
 * Chrono result */
$time = getMicroTime()-$mt_start;
$outputFile = fopen("time.txt","a+");
if(isset($_REQUEST['action'])) fputs($outputFile,$_REQUEST['action']." : ".round(($time),5)." sec\n");
else fputs($outputFile,"INDEX : ".round(($time),5)." sec\n");
fclose($outputFile); 

?>
